/*
 ============================================================================
 Name		: FEAppView.h
 Author	  : jk
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CFEAppDriverView declaration
 ============================================================================
 */

#ifndef FEAPPDRIVERVIEW_H
#define FEAPPDRIVERVIEW_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <aknview.h>
#include "FEAppUi.h"

class CFEAppDriverContainer;

// CLASS DECLARATION

/**
 *  CFEAppDriverView	
 * 
 */
class CFEAppDriverView : public CAknView
{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CFEAppDriverView();

	/**
	 * Two-phased constructor.
	 */
	static CFEAppDriverView* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CFEAppDriverView* NewLC();

public:
	// Functions from base classes
	TUid Id() const;
	void HandleCommandL(TInt aCommand);
	void HandleClientRectChange();

	CAknViewAppUi *GetAppUi();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CFEAppDriverView();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

	void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
			const TDesC8 & aCustomMessage);

	void DoDeactivate();

private:
	//data
	CFEAppDriverContainer* iContainer;
};

#endif // FEAPPVIEW_H
